package com.google.code.swingonfire.plotter;

import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.geom.Path2D;

public class MoonSketch implements Sketch
{

    private static final Rectangle BOUNDS = new Rectangle(-8, -8, 16, 16);

    @Override
    public Rectangle getBounds()
    {
        return BOUNDS;
    }

    @Override
    public void draw(Graphics2D g)
    {
        Path2D.Double path = new Path2D.Double();

        path.moveTo(-4, -7);
        path.curveTo(-15, 1, -1, 15, 7, 4);
        path.curveTo(0, 6, -6, 0, -4, -7);

        g.fill(path);
    }

}
